<?php
$readLog = $this->ret['readlist'];
?>
<div id="qianglituijian" class="nlw_c" style="height:360px;">
	<dl class="xiangpic">
		<dt><a class="bo" href="<?=self::_makeURL('index','index','view',array('cid'=>_('cid')))?>"><img src="<?=cartoon_util_upload::getUrl($ctinfo['ct_cover'],'big')?>" width="217" height="282" /></a></dt>
		<dd>
			<div  style="float:left;"> 当前得分：
				<?if($ctinfo['ct_score']):?>
				<i class="score">
				<?=$ctinfo['ct_score']?>
				</i> <span class="star star0" style="width:<?=printf("%.1f",(($ctinfo['ct_score']<0.5?1:$ctinfo['ct_score']))*14)?>px"></span>
				<?else:?>
				<span >暂无评分</span>
				<?endif;?>
			</div>
		</dd>
		<dd>
			<div  style="float:left;">请您打分：<i id="_score" class="score-gray"></i> </div>
			<script>
   		new Starry('default');
	</script>
			<input type="hidden" id="cartoon_id" value="<?=$ctinfo['id']?>" />
		</dd>
	</dl>
	<div class="mhright">
		<div style="width:400px;">
			<div style="float:left; width:300px;">
				<h2 style="width:300px;float:left;"><a class="cl fw" href="<?=self::_makeURL('index','index','view_photo',array('ctid' => $ctinfo['id'],'cid'=>$this->ret['chater'][0]['id']))?>">
					<?=$ctinfo['ct_title']?>
					</a></h2>
				<h6 style="width:300px;float:left;><a href="<?=self::_makeURL('index','index','search',array('k'=>urlencode($ctinfo['ct_author'])))?>" target="_blank">
					<?=$ctinfo['ct_author']?>
					</a> </h6>
			</div>
			<div style="width:100px; height:58px; float:left; "><a id="web_button"  href="javascript:void(0);" onclick="Subscribe.add(<?=$ctinfo['id']?>)">订阅</a></div>
		</div>
		<div class="scrolldoorFrame">
			<ul class="scrollUl">
				<li class="sd01" id="m01"><a href="javascript:void(0);" id="mhjj" class="a1 bo selected" >漫画简介</a></li>
				<li class="sd02" id="m02"><a href="javascript:void(0);" id="xzqs" class="a1 bo" >选择期数</a></li>
			</ul>
			<div class="bor03 cont">
				<div id="c01" style="	text-indent: 2em; ">
					<p>
						<?=mb_strimwidth($ctinfo['ct_desc'],0,300,'…','UTF-8')?>
					</p>
				</div>
				<div  class="cartoon_online_border" id="chapter_list" style="display:none" >
					<?if($this->ret['chater']):?>
					<ul>
						<?foreach ($this->ret['chater'] as $row):?>
						<li <?if($readLog[$ctinfo['id']] && in_array($row['id'],$readLog[$ctinfo['id']])):?> class="cartoon_online_now" <?endif;?>><a href="<?=self::_makeURL('index','index','view_photo',array('ctid' => $ctinfo['id'],'cid'=>$row['id']))?>">
							<?=$row['chapter_title']?>
							</a></li>
						<?endforeach;?>
					</ul>
					<?endif;?>
					<div style="clear:both;"></div>
				</div>
			</div>
		</div>
		<?$comnum = comment_util_comment::getCommentCount('index','index','view',$ctinfo['id']);?>
		<ul class="dh">
			<li><a href="javascript:void(0);" onclick="Dig.dig(<?=$ctinfo['id']?>)"><img src="/images/dd.jpg" width="21" height="21" /></a>顶
				<label id="dignum">
					<?=$ctinfo['ct_tops']?>
				</label>
				个</li>
			<li><a class="bo" href="javascript:void(0);" onclick="BookList.addCartoonToBookListFrom(<?=$ctinfo['id']?>)" >加入书单</a></li>
			<li><a class="bo" href="javascript:void(0);" onclick="Subscribe.add(<?=$ctinfo['id']?>)">订阅</a> </li>
			<li><a class="bo" href="javascript:void(0);" onclick="Share.add_share(<?=$ctinfo['id']?>)">分享给好友</a> </li>
			<li><a  target="_blank" href="http://share.renren.com/share/buttonshare?title=<?=$ctinfo['ct_title']?>&link=http://www.<?=DOMAIN?><?=self::_makeURL('index','index','view',array('cid'=>$ctinfo['id']))?>" ><img src="/images/renlg.jpg" width="16" height="16" /></a></li>
		</ul>
		<ul class="duguo">
			<li>(<span id="reanded">
				<?=$ctinfo['ct_readed']?>
				</span>人) <a onclick="Log.read(<?=$ctinfo['id']?>,2)" >读过</a></li>
			<li>(<span id="wantread">
				<?=$ctinfo['ct_want_read']?>
				</span>)<a onclick="Log.read(<?=$ctinfo['id']?>,1)" >想读</a></li>
			<li>(<a href="<?=self::_makeURL('index','index','view',array('cid'=>$ctinfo['id'],'com'=>1))?>" ><?=$comnum?></a>人)评论</li>
		</ul>
		<h4><span>标签：</span>
			<?php 
$taglist = explode(',',$ctinfo['ct_series']);
?>
			<?if($taglist):?>
			<?foreach ($taglist as $rw):?>
			<a href="<?=self::_makeURL('index','index','list',array('type' => TYPE_TAG,'k'=>$rw))?>" >
			<?=$rw?>
			</a>
			<?endforeach;?>
			<?endif;?>
		</h4>
	</div>
</div>
